@extends('admin.base')
@section('title','其他参数配置')
@section('header','其他参数配置')
@section('content')
    <fieldset class="layui-elem-field">
        <div class="layui-field-box">
            <span class="layui-breadcrumb" lay-separator=">>">
                <a class="layui-btn-sm" href="{{url('admin/config/index')}}" style="cursor:pointer;" ><cite>系统参数</cite></a>;
            </span>
        </div>
    </fieldset>
    <div id="main">
        <div class="layui-card" style="padding-top:30px;padding-bottom:30px">

            @forelse($configs as $config)
                <form class="layui-form" method="post" action="/admin/config/update">
                <input type='hidden' name='type' value='{{$type}}'>
                    @csrf
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width:170px">{{$config->param}}</label>
                        <div class="layui-input-inline" style="width:300px">
                            <input type="hidden" name="name" value="{{$config->name}}">
                            <input type="text" name="value" value="{{$config->value}}" required
                                   lay-verify="required"  style="width:300px" placeholder="{{$config->msg}}" autocomplete="off" class="layui-input">
                                
                        </div>
                        
                        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    </div>
                    <!-- <div class="layui-form-item ">
                        <div class="layui-input-block" style="margin-left:160px;">
                            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                            {{--<button type="reset" class="layui-btn layui-btn-primary">重置</button>--}}
                        </div>
                    </div> -->
                </form>
            @empty
                无数据
            @endforelse
        </div>
    </div>
    <script>
        layui.use('form', function(){
            var form = layui.form;
        });
    </script>

@endsection


